package observer;

import javax.lang.model.element.VariableElement;

public class App {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        DisplayOne one = new DisplayOne();
        DisplayOne two = new DisplayOne();
        one.registerToSubject(weatherData);
        two.registerToSubject(weatherData);

        weatherData.setWeather(12,32);
        one.removeFromSubject(weatherData);
        weatherData.setWeather(1,2);
    }
}
